Defragmenting, shrinking, and cleaning up VMware Fusion virtual machine disks (1001934)

您所在的位置:网站首页 fusion 硬盘 Defragmenting, shrinking, and cleaning up VMware Fusion virtual machine disks (1001934)

Defragmenting, shrinking, and cleaning up VMware Fusion virtual machine disks (1001934)

2024-04-09 01:25| 来源: 网络整理| 查看: 265

Fusion virtual machines can be pre-allocated or sparse. In a pre-allocated virtual machine, the size of the virtual disk file (or files, if you have chosen to split the virtual machine into 2 GB files) is equal to the size of the virtual machine. In a sparse virtual machine, the size of the virtual disk file (or files) is equal to the total used space of the virtual machine.

Your virtual machine bundle is always larger than the size of your virtual disks because the bundle contains snapshots, suspend state files (if the virtual machine is suspended), settings files, and logs. For more information, see Contents of the virtual machine bundle in Fusion (1021016).

However, if the size of your virtual disks is significantly larger than the used space shown in the virtual machine's Operating System, it is possible to reduce this size.

To reduce the size of the disk, you must defragment the disk within Windows, shrink the virtual disk using VMware Tools, and then clean up the virtual disk from within Mac OS using the built-in Fusion utility.

Notes:

This process does not apply to pre-allocated disks. To make a pre-allocated disk sparse, see Making a Fusion virtual disk pre-allocated or sparse (1021565).You cannot perform a Clean up or Clean up option would not be available for an Encrypted VM. You must Decrypt the VM to perform a Clean up  

To determine if your disk is sparse or pre-allocated, check the virtual disk settings:

Launch Fusion.From the menu bar, go to Virtual Machine > Settings.Click Hard Disk section.Under Advanced, look for the Pre-allocated check box.

If Pre-allocated is selected, then your virtual disk is pre-allocated. If Pre-allocated is not selected, your virtual disk is sparse.  

If your disk has snapshots, you need to delete the snapshots before trying to reduce the size of the disk. For more information, see Deleting snapshots in VMware Fusion (1020245). Defragmenting within Windows

In a Windows virtual machine, you must first run a disk defragment from within Windows. Defragmenting within Windows ensures that all of the used spaces are contiguous. You can then reduce the size of the virtual disk.

To run a disk defragment within Windows, follow the instructions from Microsoft:

Windows XP: How to Defragment Your Disk Drive Volumes in Windows XPWindows Vista: Improve performance by defragmenting your hard diskWindows 7: Improve performance by defragmenting your hard diskWindows 10: Improve performance by defragmenting your hard disk

Note: The preceding links were correct as of September 9, 2013. If you find that a link is broken, provide feedback and a VMware employee will update the link.

Shrinking the virtual disk

After defragmenting the virtual disk, use VMware Tools to erase empty disk sectors at the end of the disk, so that and the space is freed up.

Note: In Fusion 5.x and above, shrinking is automatically done while Cleaning up the disk. Therefore, this option is removed from VMware Tools Panel.

To shrink the virtual disk in VMware Fusion 4.x and earlier:

Open the VMware Tools Control Panel / Toolbox:   In Windows: Double click the VMware Tools icon in the system tray, or go to Start > Control Panel > VMware Tools.In Linux:   Open a command prompt. For more information, see Opening a command or shell prompt (1003892).Run this command:

vmware-toolbox  

Click the Shrink tab.Ensure that your boot drive is selected.Click Prepare to Shrink and then follow the prompts.

Caution: Do not shutdown your virtual machine or the Mac while the disk is shrinking. Do not try to cancel the process. Interrupting this process can cause irreparable damage to your virtual disk and you may not be able to start your virtual machine again.

Cleaning up the disk

After shrinking your virtual disk, Fusion ensures that the virtual disk is optimized for Mac OS X. Mac OS X does this automatically for smaller files. However, virtual machine files are too large and you must manually clean up the disk.

To clean up your virtual disk:

In Fusion 4.x and above:

Shut down your virtual machine.Go to Virtual Machine > Settings > General.Select Clean Up Virtual Machine. Note: For Fusion 10.x, To enable auto clean up check the box for " Clean up disks after shutting down the virtual machine “.

In Fusion 3.x and earlier:

Shut down your virtual machine.Go to Virtual Machine > Settings > Hard Disks.Select Clean Up Disk. Additional Information For translated versions of this article, see: Español: Desfragmentar y comprimir discos de máquina virtual Fusion (2034917)Português: Como desfragmentar e reduzir os discos da máquina virtual Fusion (2036614)日本語: Fusion 仮想マシン ディスクの最適化、圧縮、クリーン アップ (2078415)简体中文: 对 VMware Fusion 虚拟机磁盘进行碎片整理、压缩和清理 (2086167)


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3